# -*- coding: utf-8 -*-
from fastapi import APIRouter

from .conversation_router import get_list_dialog, get_list_conversation, delete_dialog, update_dialog, delete_conversion, add_dialog

router = APIRouter()


router.get("/dialog/list_dialog", tags=["Dialog"], summary="获取所有对话")(get_list_dialog)
router.get("/dialog/list_conversion", tags=["Dialog"], summary="获取对话下所有会话")(get_list_conversation)

router.post("/dialog/add_dialog", tags=["Dialog"], summary="新建对话，用于原生模型对话、知识库对话、条款检查")(add_dialog)
router.post("/dialog/delete_dialog", tags=["Dialog"], summary="删除对话")(delete_dialog)
router.post("/dialog/update_dialog", tags=["Dialog"], summary="更新对话")(update_dialog)
router.post("/dialog/delete_conversion", tags=["Dialog"], summary="删除对话下指定会话")(delete_conversion)
